File: /var/www/html/orbidirectory.com/database/migrations/2024_06_17_090117_create_orbi_leads_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('orbi_leads', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->unsignedInteger('vehicle_type_id');
$table->integer('number_of_passenger');
$table->string('phone_number');
$table->string('email')->nullable();
$table->string('pickup');
$table->string('drop');
$table->timestamp('travel_date')->nullable();
$table->timestamp('description')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('orbi_leads');
}
};